package lntu.chap03;

public class Teacher {
    private String name;
    private int age;
    private double salary;
    private String education;
    public Teacher(){}
    public Teacher(String name,int age,double salary,String education){
        super();
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.education = education;
    }
    public String getName(){
        return  name;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    public void setSalary(double salary){
        this.salary = salary;
    }
    public double getSalary(){
        return salary;
    }
    public void setEducation(String education){
        this.education = education;
    }
    public String getEducation(){
        return education;
    }
    public void show(){

        System.out.println("教师姓名："+this.name+","+"教师年龄："+this.age+","+"文化程度："+this.education+","+"教师工资："+this.salary);
    }
    public void teach(){
        System.out.println("我是教师"+this.name+","+"我的工作是教书育人");
    }
}
